
* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
}
body {
    background-color: rgba(0, 0, 0, 0.56);
}
#chat-box {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 1200px;
    margin-left: 2px;
    border: 1px solid black;
    background-color: white;
}

#chat-box-left {
    float: left;
    width: 30%;
    border-right: 1px solid grey;
}
#chat-box-right {
    float: right;
    position: absolute;
    right: 0;
    width: 70%;
}

.box-left-top {
    width: 100%;
    height: 60px;
    line-height: 60px;
    text-align: center;
    font-size: 13px;
    border-bottom: 2px solid gray;
}

#search {
    width: 80px;
    height: 30px;
    background-color: white;
    border: 1px solid black;
    border-radius: 6px;
    line-height: 30px;
    margin-left: 20px;
    cursor: pointer;
    text-align: center;
}

#input-phone {
    width: 150px;
    height: 30px;
    border: 1px solid grey;
    border-radius: 10px;
    background-color: #f0f0f0;
    text-indent: 2em;
    outline: none;
}

.box-left-center {
    width: 100%;
    height: 640px;
    border-bottom: 2px solid grey;
}

.box-left-center ul {
    height: 640px;
    overflow-y: scroll;
    /* 当内容超出容器高度时，显示滚动条 */
    list-style-type: none;
}

.box-left-center ul li {
    width: 100%;
    height: 50px;
    line-height: 50px;
    font-size: 18px;
    text-align: center;
    color: rgba(0, 0, 0, 0.82);
    border-bottom: 1px solid grey;
    cursor: pointer;
}

.box-left-bottom {
    width: 100%;
    height: 50px;
}

#sendButton:hover {
    background-color: #45a049;
    /* 更深的绿色 */
}

/* 滚动条 */
/* 针对WebKit浏览器（Chrome, Safari等） */
::-webkit-scrollbar {
    width: 10px;
    /* 滚动条的宽度 */
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    /* 滚动条的轨道背景色 */
}

::-webkit-scrollbar-thumb {
    background: rgb(186, 176, 176);
    /* 滚动条的滑块颜色 */
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(228, 223, 223);
    /* 鼠标悬停在滑块上时的颜色 */
}

.operation {
    text-align: center;
    margin-top: 5px;
    float: left;
    width: 45px;
    height: 45px;
    line-height: 40px;
    font-size: 14px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.304);
    cursor: pointer;
    margin-left: 30px;
    margin-right: 10px;
    background: url('../images/f1d61cd4-8f08-43ea-89cb-11015fe7ebd2.png') repeat-x;
    background-size: 45px 45px;
}

.box-right-top{
    float: right;
    width: 100%;
    height: 100px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.607);
}
.box-right-top-operation {
    float: right;
    width: 100%;
    height: 60px;
    line-height: 60px;
    border-bottom: 2px solid grey;
}
.friend-name {
    float: left;
    width: 100%;
     height: 40px;
     line-height: 40px;
    border-bottom: 1px solid grey;
 }
.box-right-center {
    float: right;
    width: 100%;
    height: 563px;
    border-bottom: 1px solid grey;
}

.box-right-bottom {
    float: right;
    width: 100%;
    position: relative;
}

#messageInput {
    flex: 1;
    width: 98.6%;
    height: 68px;
    outline: none;
    padding-top: 20px;
    padding-left: 10px;
    resize: none;
}

#sendButton {
    position: absolute;
    right: 30px;
    bottom: 20px;
    padding: 5px 10px;
    background-color: #4CAF50;
    /* 绿色 */
    border: none;
    border-radius: 5px;
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
}

.scrollable-list {
    width: 100%;
    height: 563px;
    /* 设置ul的高度为200px */
    overflow-y: scroll;
    /* 当内容超出容器高度时，显示滚动条 */
    list-style-type: none;
    margin-bottom: 10px;
}

.scrollable-list li {
    text-align: left;
    width: 100%;
    height: 50px;
    margin-top: 20px;
    margin-bottom: 20px;
    /* 设置每个li的高度为40px */
}

.scrollable-list li p:first-of-type {
    width: 100% !important;
    position: relative;
    text-indent: 10px;
}

.scrollable-list li p:last-of-type {
    position: relative;
}

.scrollable-list li p:first-of-type span {
    margin-left: 10px;
}

.scrollable-list li p:last-of-type {
    display: inline-block;
    margin-left: 20px;
    padding: 5px 7px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid grey;
    background-color: white;
}

/* 个人 */

.personal {
    text-align: right !important;
    height: 60px;
    /* 设置每个li的高度为40px */
}

.personal p:first-of-type {
    float: right;
    height: 25px;
    line-height: 25px;
    font-size: 14px;
    text-indent: -1em;
}

.personal p:first-of-type span {
    position: relative;
    left: -20px;
}

.personal p:first-of-type i {
    text-align: right;
    position: relative;
    left: -10px;
}

.personal p:last-of-type {
    float: right;
    position: relative;
    left: -20px;
    color: white;
    background-color: rgb(20, 186, 20) !important;
}

.login-box {
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 99999999;
    top: 0;
    left: 0;
    background-color: #ffffff;
    display: none;
}

#username,
#password,
#register-nickname,
#register-password,
#register-phone {
    margin: 20px auto;
    width: 250px;
    height: 30px;
    text-indent: 1em;
    outline: none;
    line-height: 40px;
    border: 0px;
    border-bottom: 1px solid grey;
}

#login,
#register {
    margin-left: 120px;
    background-color: white;
    color: rgba(0, 0, 0, 0.55);
    border: 1px solid grey;
    height: 30px;
    line-height: 30px;
    font-size: 18px;
    font-weight: bold;
    width: 100px;
    text-align: center;
    cursor: pointer;
}

.login-frame {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
}
.phone-result{
    position: relative;
    text-align: center;
    font-size: 18px;
}
.phone-result p{
    width: 120px;
    float: left;
    margin-left: 60px;
}
.phone-result button {
    width: 80px;
    height: 35px;
    margin-top: 5px;
    background-color: white;
    border: 1px solid grey;
    position: absolute;
    right: 50px;
}
.black{
    background: url('../images/black.png') repeat-x;
    background-size: 45px 45px;
    color: white;
}
.grey{
    background-color: grey;
}
.exit{
    width: 100%;
    height: 100%;
    background-color: unset;
}
.exit h1{
    cursor: pointer;
    opacity: 1;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}